package org.dromara.finance.controller;

import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.enumd.EnumPattern;
import org.dromara.finance.domain.bo.SaleContractBo;
import org.dromara.finance.domain.report.SaleContractReportVO;
import org.dromara.finance.service.IReportService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequiredArgsConstructor
@RestController
@RequestMapping("/finance/report")
public class ReportController {

    private final IReportService reportService;

    @RequestMapping("/getContractReport")
    public R<List<SaleContractReportVO>> getContractReport(SaleContractBo bo)
    {
        return R.ok(reportService.getContractReport(bo));
    }

}
